package com.ithe.canteen.mapper;

import com.ithe.canteen.pojo.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper {

    List<Order> queryOrder(String customerID);

    List<Order> managerQueryOrder(String dayQuery, String stateQuery);

    Integer updateOrderState(String orderState, String orderID);

    Integer addOrder(String orderID, String orderUser,
                     String orderDate, String orderFood, String orderState);

    Integer deleteOrder(String orderID);

    String getFoodID(String orderID);
}
